package com.yuecai.enums;

import lombok.Getter;

@Getter
public enum  OrderEnum {

    //0:待发货;1:待收货;2:已收货;3:待评价;4:已完成;5已取消


    //注意注意，这个枚举 body 字符串 第二位到最后一位 必须是名词 如代发货 第二位 到最后一位是 发货，能直接给用户提示
    DROP_SHIPPING (0, "待发货",null),
    WAIT_FOR_RECEIVING(1, "待收货",0),
    RECEIVED(2, "已收货",1),
    EVALUATE(3, "待评价",2),
    ACCOMPLISH(4, "已完成",3),
    CANCEL(5, "已取消",0);


    /** 订单状态码*/
    private Integer status;
    /** 概念*/
    private String body;
    /** 上个状态订单状态码*/
    private Integer upStatus;

    private OrderEnum(Integer status, String body,Integer upStatus) {
        this.status = status;
        this.body = body;
        this.upStatus = upStatus;
    }
}
